<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head>
	<base href="<%=request.getContextPath()+"/"%>">
		<title>无标题文档</title>
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<link href="css/select.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="js/jquery.js"></script>
		<script type="text/javascript" src="js/jquery.idTabs.min.js"></script>
		<script type="text/javascript" src="js/select-ui.min.js"></script>
		<script type="text/javascript" src="editor/kindeditor.js"></script>
		<script type="text/javascript">
		$(document).ready(function(e) {
		    $(".select1").uedSelect({
				width : 345			  
			});
			
		});
	</script>
		<script type="text/javascript">
			// 获取页面初始化数据
			$(function () {
				// 获取页面初始化数据
				$.get("ptu/EmployeeServlet?method=empFindMgr", function (result) {
					for (var i in result) {
						$("#mgr").append("<option value='" + result[i].empId + "'>" + result[i].realName + "</option>")
					}
				}, "json")

				$.get("ptu/DeptServlet?method=deptFindAll1", function (result) {
					for (var  i in result) {
						$("#dept").append("<option value='" + result[i].deptno + "'>" + result[i].deptname + "</option>")
					}
				}, "json")

				$.get("ptu/PositionServlet?method=positionFindAll1", function (result) {
					for (var  i in result) {
						$("#pos").append("<option value='" + result[i].posid + "'>" + result[i].pname + "</option>")
					}
				}, "json")
			})
		</script>
	</head>

	<body>

		<div class="place">
			<span>位置：</span>
			<ul class="placeul">
				<li><a href="#">人事管理</a></li>
				<li><a href="#">添加员工</a></li>
			</ul>
		</div>

		<div class="formbody">

			<div class="formtitle"><span>基本信息</span></div>

			<form action="ptu/EmployeeServlet?method=employeeSave" method="post">
				<div class="formbody">

					<ul class="forminfo">
						<li>
							<label>用户名</label>
							<input name="empId" type="text" class="dfinput"/></li>
						<li>
						<li>
							<label>密码</label>
							<input name="password" type="text" class="dfinput"/></li>
						<li>
						<li>
							<label>真实姓名</label>
							<input name="realName" type="text" class="dfinput"/><i></i></li>
						<li>
							<label>性别</label><cite>
							<input name="sex" type="radio" value="1" checked="checked"/>男&nbsp;&nbsp;&nbsp;&nbsp;
							<input name="sex" type="radio" value="0"/>女</cite>
						</li>
						<li>
							<label>出生日期</label>
							<input name="birthDate" type="date" value="2000-06-01" class="dfinput" onfocus="WdatePicker({skin:'whyGreen',lang:'en'})"/>
						</li>
						<li>
						<li>
							<label>入职时间</label>
							<input name="hireDate" type="date" value="2020-06-01" class="dfinput" onfocus="WdatePicker()"/><i></i></li>
						<li>
							<label>离职时间</label>
							<input name="leaveDate" type="text" class="dfinput" onfocus="WdatePicker()"/><i></i></li>
						<li>
							<label>是否在职</label><cite>
							<input name="onDuty" type="radio" value="1" checked="checked"/>是&nbsp;&nbsp;&nbsp;&nbsp;
							<input name="onDuty" type="radio" value="0"/>否</cite>
						</li>
						<li>
							<label>员工类型<b>*</b></label>
							<div class="vocation">
								<select class="select1" name="empType">
									<option>--请选择--</option>
									<option value="1">基层员工</option>
									<option value="2">各级管理人员</option>
									<option value="3">各级领导人员</option>
									<option value="4">公司负责人</option>
								</select>
							</div>
						</li>
						<li>
							<label>所属部门<b>*</b></label>
							<div class="vocation">
								<select class="select1" id="dept" name="deptno">
									<option>--请选择--</option>
								</select>
							</div>
						</li>
						<li>
							<label>从事岗位<b>*</b></label>
							<div class="vocation">
								<select class="select1" id="pos" name="posid">
									<option>--请选择--</option>
								</select>
							</div>
						</li>
						<li>
							<label>直接上级<b>*</b></label>
							<div class="vocation">
								<select class="select1" id="mgr" name="mgrid">
									<option>--请选择--</option>
								</select>
							</div>
						</li>
						</li>
						<li>
							<label>联系方式</label>
							<input name="phone" type="text" class="dfinput"/>
						</li>
						<li>
							<label>QQ号</label>
							<input name="qq" type="text" class="dfinput"/>
						</li>
						<li>
							<label>紧急联系人信息</label>
							<textarea name="emerContactPerson" id="ecp" class="textinput"></textarea>
						</li>
						<li>
							<label>身份证号</label>
							<input name="idCard" type="text" class="dfinput"/>
						</li>
						<li>
							<label>&nbsp;</label>
							<input type="submit" class="btn" value="确认保存"/>
						</li>
					</ul>
				</div>
			</form>

		</div>

	</body>

</html>